package com.xh.bgc.services.bug;

import java.util.List;
import java.util.Map;

import com.xh.bgc.pojo.BugInfo;

public interface BugInfoServices {

	public void addBugInfo(BugInfo bug);

	/**
	 * 
	 * @param description
	 * @return ajax条件查询
	 */
	public List<Map<String, Object>> searchSomething(String description);

	/**
	 * 
	 * @param description
	 * @return 条件查询
	 */
	public List<Map<String, Object>> findByName(String description);

	/**
	 * 
	 * @param description
	 * @return 按钮查询
	 */
	public List<Map<String, Object>> buttonSearch(String description,
			int indexPage, int pageSize);

	// 信息总条数
	public int findAllPage(String description);

	// 精确查询
	public Map<String, Object> searchById(int bugid);

	public int insertBugInfo(int userid, int bugid,int satus);
//更新查询次数
	public int updateNumber(int queriesNumber,int bugid);
}
